<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/device2.css"/>
</head>
<%
    Boolean power = (Boolean) session.getAttribute("power");
%>
<%if(power!=null && power){ %>
<body>
<h2>修改用户</h2>
<form action="<%=request.getContextPath() %>/alterUser.do" method="post">
    <label for="username">请输入要修改的账号：</label>
    <input type="text" id="username" name="username" required><br>

    <label for="userId">修改后的用户名：</label>
    <input type="text" id="userId" name="userId" required><br>

    <label for="password">"修改后的密码：</label>
    <input type="password" id="password" name="password" required><br>

    <label for="birth">修改后的出生日期：</label>
    <input type="date" id="birth" name="birth"><br>

    <label for="address">修改后的收货地址：</label>
    <input type="text" id="address" name="address"><br>

    <label for="phone">修改后的联系电话：</label>
    <input type="text" id="phone" name="phone"><br>

    <label for="email">修改后的电子邮箱：</label>
    <input type="email" id="email" name="email"><br>

    <label for="power">修改后的权限：</label>
    <select id="power" name="power">
        <option value="1">是管理</option>
        <option value="0">不是管理</option>
    </select><br>

    <button type="submit">添加用户</button>
</form>
</body>
<%}else{%>
<h5>您好！您无权限进入此页面！</h5>
<% }%>
</html>
